import 'package:flutter/material.dart';

class MyModel with ChangeNotifier {
  String _name = '';
  int _age = 0;

  String get name => _name;
  int get age => _age;

  void update(String name, int age) {
    _name = name;
    _age = age;
    notifyListeners();
  }
}